package com.example.cloud.model.finance;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * Created by wangtao on 2018/7/30.
 * 补交记录
 */
@Entity(name = "finance_make_record")
@Data
@EqualsAndHashCode(callSuper = false)
public class MakeRecord extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 患者主键
    @Column(name = "patient_id")
    private Long patientId;
    // 会员主键
    @Column(name = "member_id")
    private Long memberId;
    // 会员名称
    @Column(name = "member_name")
    private String memberName;
    // 会员编号
    @Column(name = "member_number")
    private String memberNumber;
    // 待交费记录主键
    @Column(name = "record_id")
    private Long recordId;
    // 交费项目
    @Column(name = "item_name")
    private String itemName;
    // 总费用
    @Column(name = "total_amount")
    private BigDecimal totalAmount;
    // 交费金额
    @Column(name = "pay_amount")
    private BigDecimal payAmount;
    // 剩余金额
    @Column(name = "last_amount")
    private BigDecimal lastAmount;
}
